home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZPRNPTR.C < prev    next >
Text File  |  1989-04-09  |  825b  |  29 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │jzprnptr                                     │
  4. │Print out a any data object. i.e. array, structure, etc.             │
  5. │Synopsis:                                     │
  6. │  struct treg wreg;                                 │
  7. │  .                                         │
  8. │  .                                         │
  9. │  .                                         │
  10. │  jzprnptr(&wreg,"%02x",sizeof(wreg));                                      │
  11. │                                         │
  12. │  Synopsis:                                     │
  13. │     wreg : the data item to print;                         │
  14. │     second parm is the control string                      │
  15. │     third argument is sizeof the structure                     │
  16. │                                         │
  17. └────────────────────────────────────────────────────────────────────────────┘
  18. */
  19.  
  20. jzprnptr(fptr,fctrl,flength)
  21. char *fptr;
  22. char *fctrl;
  23. unsigned int flength;
  24. {
  25.  
  26.   while (flength--)
  27.     printf(fctrl,*fptr++);
  28. }
  29.